//@author A0097978X
package flexiCommands;

public class ParseUndoInfo extends ParseInfo{

	private static final int COMMAND = 0;

	private String[] infoToParse;
	private Command processedCmd;

	public ParseUndoInfo(String[] userInfo) throws Exception{
		super(userInfo);
	}

	@Override
	public Command execute() {
		infoToParse = super.infoString;
		processedCmd = super.cmdObj;

		processedCmd.setCommandType(infoToParse[COMMAND]);

		return processedCmd;
	}

}